package com.wpml;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @Description 上下文容器
 * @Date 2021-08-27
 * @Author wangpei
 **/
public class ServletContextBean {

    private ServletContext servletContext;
    private HttpServletResponse response;
    private HttpServletRequest request;
    private HttpSession session;

    public ServletContextBean(HttpServletRequest request, HttpServletResponse response) {
        this.request = request;
        this.response = response;
        this.servletContext = request.getServletContext();
        this.session = request.getSession();
    }

    public ServletContext getServletContext() {
        return servletContext;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public HttpSession getSession() {
        return session;
    }

}
